package com.smartwebx.ha.dal.assign.bean;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class HaPageExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public HaPageExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andPageIdIsNull() {
            addCriterion("page_id is null");
            return (Criteria) this;
        }

        public Criteria andPageIdIsNotNull() {
            addCriterion("page_id is not null");
            return (Criteria) this;
        }

        public Criteria andPageIdEqualTo(Integer value) {
            addCriterion("page_id =", value, "pageId");
            return (Criteria) this;
        }

        public Criteria andPageIdNotEqualTo(Integer value) {
            addCriterion("page_id <>", value, "pageId");
            return (Criteria) this;
        }

        public Criteria andPageIdGreaterThan(Integer value) {
            addCriterion("page_id >", value, "pageId");
            return (Criteria) this;
        }

        public Criteria andPageIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("page_id >=", value, "pageId");
            return (Criteria) this;
        }

        public Criteria andPageIdLessThan(Integer value) {
            addCriterion("page_id <", value, "pageId");
            return (Criteria) this;
        }

        public Criteria andPageIdLessThanOrEqualTo(Integer value) {
            addCriterion("page_id <=", value, "pageId");
            return (Criteria) this;
        }

        public Criteria andPageIdIn(List<Integer> values) {
            addCriterion("page_id in", values, "pageId");
            return (Criteria) this;
        }

        public Criteria andPageIdNotIn(List<Integer> values) {
            addCriterion("page_id not in", values, "pageId");
            return (Criteria) this;
        }

        public Criteria andPageIdBetween(Integer value1, Integer value2) {
            addCriterion("page_id between", value1, value2, "pageId");
            return (Criteria) this;
        }

        public Criteria andPageIdNotBetween(Integer value1, Integer value2) {
            addCriterion("page_id not between", value1, value2, "pageId");
            return (Criteria) this;
        }

        public Criteria andPageTitleIsNull() {
            addCriterion("page_title is null");
            return (Criteria) this;
        }

        public Criteria andPageTitleIsNotNull() {
            addCriterion("page_title is not null");
            return (Criteria) this;
        }

        public Criteria andPageTitleEqualTo(String value) {
            addCriterion("page_title =", value, "pageTitle");
            return (Criteria) this;
        }

        public Criteria andPageTitleNotEqualTo(String value) {
            addCriterion("page_title <>", value, "pageTitle");
            return (Criteria) this;
        }

        public Criteria andPageTitleGreaterThan(String value) {
            addCriterion("page_title >", value, "pageTitle");
            return (Criteria) this;
        }

        public Criteria andPageTitleGreaterThanOrEqualTo(String value) {
            addCriterion("page_title >=", value, "pageTitle");
            return (Criteria) this;
        }

        public Criteria andPageTitleLessThan(String value) {
            addCriterion("page_title <", value, "pageTitle");
            return (Criteria) this;
        }

        public Criteria andPageTitleLessThanOrEqualTo(String value) {
            addCriterion("page_title <=", value, "pageTitle");
            return (Criteria) this;
        }

        public Criteria andPageTitleLike(String value) {
            addCriterion("page_title like", value, "pageTitle");
            return (Criteria) this;
        }

        public Criteria andPageTitleNotLike(String value) {
            addCriterion("page_title not like", value, "pageTitle");
            return (Criteria) this;
        }

        public Criteria andPageTitleIn(List<String> values) {
            addCriterion("page_title in", values, "pageTitle");
            return (Criteria) this;
        }

        public Criteria andPageTitleNotIn(List<String> values) {
            addCriterion("page_title not in", values, "pageTitle");
            return (Criteria) this;
        }

        public Criteria andPageTitleBetween(String value1, String value2) {
            addCriterion("page_title between", value1, value2, "pageTitle");
            return (Criteria) this;
        }

        public Criteria andPageTitleNotBetween(String value1, String value2) {
            addCriterion("page_title not between", value1, value2, "pageTitle");
            return (Criteria) this;
        }

        public Criteria andPageTextIsNull() {
            addCriterion("page_text is null");
            return (Criteria) this;
        }

        public Criteria andPageTextIsNotNull() {
            addCriterion("page_text is not null");
            return (Criteria) this;
        }

        public Criteria andPageTextEqualTo(String value) {
            addCriterion("page_text =", value, "pageText");
            return (Criteria) this;
        }

        public Criteria andPageTextNotEqualTo(String value) {
            addCriterion("page_text <>", value, "pageText");
            return (Criteria) this;
        }

        public Criteria andPageTextGreaterThan(String value) {
            addCriterion("page_text >", value, "pageText");
            return (Criteria) this;
        }

        public Criteria andPageTextGreaterThanOrEqualTo(String value) {
            addCriterion("page_text >=", value, "pageText");
            return (Criteria) this;
        }

        public Criteria andPageTextLessThan(String value) {
            addCriterion("page_text <", value, "pageText");
            return (Criteria) this;
        }

        public Criteria andPageTextLessThanOrEqualTo(String value) {
            addCriterion("page_text <=", value, "pageText");
            return (Criteria) this;
        }

        public Criteria andPageTextLike(String value) {
            addCriterion("page_text like", value, "pageText");
            return (Criteria) this;
        }

        public Criteria andPageTextNotLike(String value) {
            addCriterion("page_text not like", value, "pageText");
            return (Criteria) this;
        }

        public Criteria andPageTextIn(List<String> values) {
            addCriterion("page_text in", values, "pageText");
            return (Criteria) this;
        }

        public Criteria andPageTextNotIn(List<String> values) {
            addCriterion("page_text not in", values, "pageText");
            return (Criteria) this;
        }

        public Criteria andPageTextBetween(String value1, String value2) {
            addCriterion("page_text between", value1, value2, "pageText");
            return (Criteria) this;
        }

        public Criteria andPageTextNotBetween(String value1, String value2) {
            addCriterion("page_text not between", value1, value2, "pageText");
            return (Criteria) this;
        }

        public Criteria andPageTextModifyTimeIsNull() {
            addCriterion("page_text_modify_time is null");
            return (Criteria) this;
        }

        public Criteria andPageTextModifyTimeIsNotNull() {
            addCriterion("page_text_modify_time is not null");
            return (Criteria) this;
        }

        public Criteria andPageTextModifyTimeEqualTo(Date value) {
            addCriterion("page_text_modify_time =", value, "pageTextModifyTime");
            return (Criteria) this;
        }

        public Criteria andPageTextModifyTimeNotEqualTo(Date value) {
            addCriterion("page_text_modify_time <>", value, "pageTextModifyTime");
            return (Criteria) this;
        }

        public Criteria andPageTextModifyTimeGreaterThan(Date value) {
            addCriterion("page_text_modify_time >", value, "pageTextModifyTime");
            return (Criteria) this;
        }

        public Criteria andPageTextModifyTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("page_text_modify_time >=", value, "pageTextModifyTime");
            return (Criteria) this;
        }

        public Criteria andPageTextModifyTimeLessThan(Date value) {
            addCriterion("page_text_modify_time <", value, "pageTextModifyTime");
            return (Criteria) this;
        }

        public Criteria andPageTextModifyTimeLessThanOrEqualTo(Date value) {
            addCriterion("page_text_modify_time <=", value, "pageTextModifyTime");
            return (Criteria) this;
        }

        public Criteria andPageTextModifyTimeIn(List<Date> values) {
            addCriterion("page_text_modify_time in", values, "pageTextModifyTime");
            return (Criteria) this;
        }

        public Criteria andPageTextModifyTimeNotIn(List<Date> values) {
            addCriterion("page_text_modify_time not in", values, "pageTextModifyTime");
            return (Criteria) this;
        }

        public Criteria andPageTextModifyTimeBetween(Date value1, Date value2) {
            addCriterion("page_text_modify_time between", value1, value2, "pageTextModifyTime");
            return (Criteria) this;
        }

        public Criteria andPageTextModifyTimeNotBetween(Date value1, Date value2) {
            addCriterion("page_text_modify_time not between", value1, value2, "pageTextModifyTime");
            return (Criteria) this;
        }

        public Criteria andCkHeightIsNull() {
            addCriterion("ck_height is null");
            return (Criteria) this;
        }

        public Criteria andCkHeightIsNotNull() {
            addCriterion("ck_height is not null");
            return (Criteria) this;
        }

        public Criteria andCkHeightEqualTo(Integer value) {
            addCriterion("ck_height =", value, "ckHeight");
            return (Criteria) this;
        }

        public Criteria andCkHeightNotEqualTo(Integer value) {
            addCriterion("ck_height <>", value, "ckHeight");
            return (Criteria) this;
        }

        public Criteria andCkHeightGreaterThan(Integer value) {
            addCriterion("ck_height >", value, "ckHeight");
            return (Criteria) this;
        }

        public Criteria andCkHeightGreaterThanOrEqualTo(Integer value) {
            addCriterion("ck_height >=", value, "ckHeight");
            return (Criteria) this;
        }

        public Criteria andCkHeightLessThan(Integer value) {
            addCriterion("ck_height <", value, "ckHeight");
            return (Criteria) this;
        }

        public Criteria andCkHeightLessThanOrEqualTo(Integer value) {
            addCriterion("ck_height <=", value, "ckHeight");
            return (Criteria) this;
        }

        public Criteria andCkHeightIn(List<Integer> values) {
            addCriterion("ck_height in", values, "ckHeight");
            return (Criteria) this;
        }

        public Criteria andCkHeightNotIn(List<Integer> values) {
            addCriterion("ck_height not in", values, "ckHeight");
            return (Criteria) this;
        }

        public Criteria andCkHeightBetween(Integer value1, Integer value2) {
            addCriterion("ck_height between", value1, value2, "ckHeight");
            return (Criteria) this;
        }

        public Criteria andCkHeightNotBetween(Integer value1, Integer value2) {
            addCriterion("ck_height not between", value1, value2, "ckHeight");
            return (Criteria) this;
        }

        public Criteria andRemberParamIsNull() {
            addCriterion("rember_param is null");
            return (Criteria) this;
        }

        public Criteria andRemberParamIsNotNull() {
            addCriterion("rember_param is not null");
            return (Criteria) this;
        }

        public Criteria andRemberParamEqualTo(Boolean value) {
            addCriterion("rember_param =", value, "remberParam");
            return (Criteria) this;
        }

        public Criteria andRemberParamNotEqualTo(Boolean value) {
            addCriterion("rember_param <>", value, "remberParam");
            return (Criteria) this;
        }

        public Criteria andRemberParamGreaterThan(Boolean value) {
            addCriterion("rember_param >", value, "remberParam");
            return (Criteria) this;
        }

        public Criteria andRemberParamGreaterThanOrEqualTo(Boolean value) {
            addCriterion("rember_param >=", value, "remberParam");
            return (Criteria) this;
        }

        public Criteria andRemberParamLessThan(Boolean value) {
            addCriterion("rember_param <", value, "remberParam");
            return (Criteria) this;
        }

        public Criteria andRemberParamLessThanOrEqualTo(Boolean value) {
            addCriterion("rember_param <=", value, "remberParam");
            return (Criteria) this;
        }

        public Criteria andRemberParamIn(List<Boolean> values) {
            addCriterion("rember_param in", values, "remberParam");
            return (Criteria) this;
        }

        public Criteria andRemberParamNotIn(List<Boolean> values) {
            addCriterion("rember_param not in", values, "remberParam");
            return (Criteria) this;
        }

        public Criteria andRemberParamBetween(Boolean value1, Boolean value2) {
            addCriterion("rember_param between", value1, value2, "remberParam");
            return (Criteria) this;
        }

        public Criteria andRemberParamNotBetween(Boolean value1, Boolean value2) {
            addCriterion("rember_param not between", value1, value2, "remberParam");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}